﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketManagement.Template
{
    public partial class TicketManagement : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user"] == null)
            {
                String currentUrl = HttpContext.Current.Request.Url.AbsoluteUri;
                if (!(currentUrl.Contains("Login") || currentUrl.Contains("Password")))
                {
                    Response.Redirect("/User/Login.aspx", true);
                }
            }
        }
    }
}